package cn.gcjxsc.common.data.notify.redpack;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 微信红包发送结果反馈.
 *
 * @author pumbaa
 * @since 1.0
 */
public class RedPackResultData {
    /**
     * 系统流水号
     */
    @NotEmpty(message = "交易号不能为空")
    private String tradeNo;
    /**
     * 微信流水号
     */
    private String outTradeNo;
    /**
     * 订单号
     */
    @NotEmpty(message = "订单号不能为空")
    private String sn;
    /**
     * 红包金额
     */
    @NotNull(message = "红包金额不正确")
    private Integer amount;
    /**
     * 获得红包的openid
     */
    @NotEmpty(message = "openid不能为空")
    private String openid;
    /**
     * 状态.00=成功
     */
    @NotEmpty(message = "返回状态不能为空")
    private String status;
    /**
     * 红包类型
     * @see cn.gcjxsc.common.consts.RedPackType
     */
    @NotNull(message = "红包类型不能为空")
    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
